module lcdcontrol(
  input CLOCK_50,	//	50 MHz clock
  input RST,      //	Pushbutton[3:0]
//	LCD Module 16X2
  output LCD_ON,	// LCD Power ON/OFF
  output LCD_BLON,	// LCD Back Light ON/OFF
  output LCD_RW,	// LCD Read/Write Select, 0 = Write, 1 = Read
  output LCD_EN,	// LCD Enable
  output LCD_RS,	// LCD Command/Data Select, 0 = Command, 1 = Data
  inout [7:0] LCD_DATA,	// LCD Data bus 8 bits
  input [127:0] line0,
  input [127:0] line1
);

wire [6:0] myclock;

// reset delay gives some time for peripherals to initialize
wire DLY_RST;
Reset_DelayLCD r0(.iCLK(CLOCK_50),.oRESET(DLY_RST), .rst(RST));


// turn LCD ON
assign	LCD_ON		=	1'b1;
assign	LCD_BLON	=	1'b1;

parameter f = 8'h66;

LCD_Display u1(
// Host Side
   .iCLK_50MHZ(CLOCK_50),
   .iRST_N(DLY_RST),
   .hex0(hex0),
   .hex1(hex1),
// LCD Side
   .DATA_BUS(LCD_DATA),
   .LCD_RW(LCD_RW),
   .LCD_E(LCD_EN),
   .LCD_RS(LCD_RS),
	.line0(line0),
	.line1(line1)
);

endmodule